<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <include file="Common@Common/watcher_js" />
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{:W('Frame/title')} {$Think.lang.administrator}</title>
    <link rel="stylesheet" href="__ROOT__/asserts/bootstrap/css/bootstrap.yeti.min.css?{$Think.const.STATIC_RES_HASH}" />
    <link rel="stylesheet" href="__ROOT__/asserts/admin/style.css?{$Think.const.STATIC_RES_HASH}" />
    <link rel="stylesheet" href="__ROOT__/asserts/css/jquery.bootgrid.min.css?{$Think.const.STATIC_RES_HASH}" />
    <link rel="stylesheet" href="__ROOT__/asserts/jquery-ui-1.11.2/jquery-ui.css?{$Think.const.STATIC_RES_HASH}" />
    <link rel="stylesheet" href="__ROOT__/asserts/bootstrap/css/font-awesome.css?{$Think.const.STATIC_RES_HASH}">
    <!--[if lt IE 9]>
        <script src="__ASSERTS__/bootstrap/js/html5shiv.min.js?{$Think.const.STATIC_RES_HASH}"></script>
        <script src="__ASSERTS__/bootstrap/js/respond.min.js?{$Think.const.STATIC_RES_HASH}"></script>
    <![endif]-->
    <script type="text/javascript">
        var TPX={
            PATH_ROOT : '__ROOT__',
            PATH_ASSERTS:'__ROOT__/asserts',
            SUFFIX_JS:'__JS_SUFFIX__?{$Think.const.STATIC_RES_HASH}',
            SUFFIX_CSS:'.css?{$Think.const.STATIC_RES_HASH}',
            LANG:'<?php echo LANG_SET; ?>',
            UEDITOR:[],
            STATIC_RES_HASH:'{$Think.const.STATIC_RES_HASH}'
        };
        var require = {
            baseUrl : '__ROOT__/asserts/js'
        };
    </script>
    <script src="__ASSERTS__/js/require__JS_SUFFIX__?{$Think.const.STATIC_RES_HASH}"></script>
</head>

<body class="tpx-use-dialog fuelux">

<!--[if lt IE 8 ]>
    <script>alert('后台不支持IE8以下的浏览器');</script>
<![endif]-->


<?php if(!defined('ADMIN_EMPTY_FRAME')){ ?>

<nav class="header navbar navbar-inverse" role="navigation" id="header">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#frame-main-menu">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="{:U('System/info')}"><span class="glyphicon glyphicon-th-large"></span> {$Think.lang.administrator}</a>
        </div>
        <div class="collapse navbar-collapse" id="frame-main-menu">
            <div id="page-main-nav">
            </div>
            <ul class="nav navbar-nav navbar-right">
                <li><a href="__ROOT__/" target="_blank">{$Think.lang.front_home}</a></li>
                <?php if(file_exists('./app/Manage/Controller/')){ ?>
                <li><a href="__ROOT__/<?php echo C('MANAGE_SCRIPT'); ?>">{$Think.lang.manage_home}</a></li>
                <?php } ?>
                <if condition="access_permit('maintain','System')">
                <li><a href="#" data-href="{:U('System/maintain?action=clear_cache')}" class="command-ajax-request">{$Think.lang.clear_cache}</a></li>
                </if>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user-secret"></i> {$Think.session.admin_username}</a>
                    <ul class="dropdown-menu" role="menu">
                        <if condition="access_permit('profile','System')">
                        <li><a href="{:U('System/profile')}">{$Think.lang.profile}</a></li>
                        </if>
                        <li class="divider"></li>
                        <li><a href="{:U('Login/out')}">{$Think.lang.logout}</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</nav>

<div id="frame-menu">
    <div class="top-btns">
        <a href="{:U('System/info')}" title="{$Think.lang.admin_home}" data-toggle="tooltip" data-placement="bottom"><span class="glyphicon glyphicon-home"></span></a>
        <if condition="access_permit('profile','System')">
        <a href="{:U('System/profile')}" title="{$Think.lang.profile}" data-toggle="tooltip" data-placement="bottom"><span class="glyphicon glyphicon-user"></span></a>
        </if>
        <if condition="access_permit('basic','Mod_config')">
        <a href="{:U('Mod_config/basic')}" title="{$Think.lang.menu_system}" data-toggle="tooltip" data-placement="bottom"><span class="glyphicon glyphicon-cog"></span></a>
        </if>
        <a href="{:U('Login/out')}" title="{$Think.lang.logout}" data-toggle="tooltip" data-placement="bottom"><span class="fa fa-sign-out"></span></a>
    </div>
    {:W('Frame/menu')}
</div>

<div class="frame-content-warp">
    <div id="frame-content">
        <block name="content-box-wapper">
            <div id="page-title-bar">
                <span class="title">
                    <span class="glyphicon glyphicon-stop"></span>
                    {:W('Frame/title')}
                </span>
                <block name="page-sub-nav">
                </block>
            </div>
            <div id="page-content">
                <block name="content-box">
                </block>
            </div>
        </block>
    </div>
</div>
<nav class="footer navbar navbar-inverse" role="navigation">
    {$Think.lang.admin_copyright}
</nav>
<?php }else{ ?>
<block name="content-box"></block>
<?php } ?>

<script type="text/javascript">
var admin_ueditor_handle = "{:U('System/upload_handle')}";
var admin_ueditor_lang =
/*<if condition="LANG_SET eq 'zh-cn'">*/
    'zh-cn'
/*<else />*/
    'en'
    /*</if>*/
;
</script>
<script src="__ROOT__/asserts/admin/admin__JS_SUFFIX__?{$Think.const.STATIC_RES_HASH}"></script>
</body>
</html>
